import { PlayerMiniInfo } from "../../../model/PlayerMiniInfo";
import { SPublicMiniPlayer } from "../../../../../Message/Public/SPublicMiniPlayer";
type int = number;
//class FaceAuthority
    
    export  class FaceAuthority
    {
        

        public static getFullAuthority(): int
        {
            return FaceAuthority.NORMAL | FaceAuthority.VIP;
        }

        public static getPlayerAuthority(arg1: PlayerMiniInfo): int
        {
            if (arg1.isVIP) 
            {
                return FaceAuthority.VIP | FaceAuthority.NORMAL;
            }
            return FaceAuthority.NORMAL;
        }

        public static getMiniPlayerAuthority(arg1: SPublicMiniPlayer): int
        {
            if (arg1.VIP > 0) 
            {
                return FaceAuthority.VIP | FaceAuthority.NORMAL;
            }
            return FaceAuthority.NORMAL;
        }

        public static getVIPAuthority(arg1: int): int
        {
            if (arg1 > 0) 
            {
                return FaceAuthority.VIP | FaceAuthority.NORMAL;
            }
            return FaceAuthority.NORMAL;
        }

        public static /* const */NORMAL: int=1;

        public static /* const */VIP: int=2;
    }
